www.gusucode.com > 云网互动影视系统(12套模版和资源联盟) 6.2 > 云网互动影视系统(12套模版和资源联盟) 6.2.4/免费版/Admin/Admin_LM_Type.asp
<html> <head> <META content=ywnt,云网互动影视管理系统 name=keywords> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>云网互动影视6.0--联盟栏目转换</title> <LINK href="css/css.css" type=text/css rel=stylesheet> </head> <BODY leftMargin=0 topMargin=0 scroll=yes MARGINHEIGHT="0" MARGINWIDTH="0"> <!--#include file="../Conn.asp" --> <!--#include file="YWNT_TMS_inc/YWNT_TMS_Function.asp" --> <!--#include file="YWNT_TMS_inc/YWNT_TMS_Page.asp" --> <% '=================================================================================================================== '软件名称:云网影视管理系统 'Copyright (C) 2002-2007 ywnt.net All rights reserved. '产品咨询QQ:489234,2813712 '程序版权:云网互动科技有限公司 '程序开发:云网互动科技有限公司 '官方网站:http://www.ywnt.net '郑重声明: ' 1、免费版本请在程序首页保留版权信息,并做上本站LOGO友情连接,商业版本无此要求; ' 2、任何个人或组织不得在授权允许的情况下删除、修改、拷贝本软件及其他副本上一切关于版权的信息; ' 3、云网互动科技有限公司保留此软件的法律追究权利 '=================================================================================================================== IF Session("Admin")="" and Session("AdminGroup")="" and Session("AdminSession")<>true Then Response.write "<script>top.location.href='Admin_Login.asp'</script>" Response.end() END IF sub EditSave() Set Rs=Server.CreateObject(YWNT_TMS_RS) sql="select * from YWNT_LM_Type where ID="&Request.Form("ID") Rs.open sql,Conn,1,3 RS("LMType")=Request.Form("LMType") RS("TypeID")=Request.Form("TypeID") Rs.Update Rs.Close Set Rs = Nothing Call AddLog("修改联盟栏目转换",9) call Admin_ShowErr("<li>联盟栏目转换修改成功</li>","Admin_LM_Type.asp",1) end sub sub AddSave() Set Rs=Server.CreateObject(YWNT_TMS_RS) sql="select * from YWNT_LM_Type where LMType='"&Request.Form("LMType")&"'" Rs.open sql,Conn,1,3 if Rs.eof then Rs.addnew RS("LMType")=Request.Form("LMType") RS("TypeID")=Request.Form("TypeID") Rs.Update Rs.Close Set Rs = Nothing Call AddLog("添加联盟栏目转换",9) call Admin_ShowErr("<li>联盟栏目转换添加成功</li>","Admin_LM_Type.asp",1) else call Admin_ShowErr("<li>对不起已经有此转换栏目</li>","Admin_LM_Type.asp",0) end if end sub sub Del() Conn.execute "delete from YWNT_LM_Type WHERE ID = "&Request("ID")&"" Call AddLog("删除影片栏目",3) call Admin_ShowErr("<li>影片栏目删除成功!</li>","Admin_LM_Type.asp",1) end sub%> <table class=table cellspacing=1 cellpadding=3 width="98%" align=center border=0> <tr> <td class=xingmu>联盟栏目转换管理</td> </tr> <tr> <td class="hback"><a href="Admin_LM_Type.asp">联盟栏目转换管理首页</a> | <a href="Admin_LM_Type.asp?Action=Add">添加联盟栏目转换</a> </td> </tr> </table> <% Action=Trim(request("Action")) Select Case Action Case "Add" call Add() Case "AddSave" call AddSave() Case "EditSave" call EditSave() Case "Del" call Del() Case else call List() End Select sub List() Dim int_RPP int_RPP=GetConfig("PageNumber") '设置每页显示数目%> <table class=table cellspacing=1 cellpadding=3 width="98%" align=center border=0> <tr> <td width="5%" align="center" class=xingmu>ID</td> <td width="40%" align="center" class=xingmu>联盟栏目</td> <td width="40%" align="center" class=xingmu>对应系统栏目</td> <td width="15%" align="center" class=xingmu>操作</td> </tr> <% Set Rs = server.CreateObject(YWNT_TMS_RS) sql="Select ID,LMType,TypeID from YWNT_LM_Type Order by id asc" Rs.open sql,Conn,1,1 if Rs.eof then Response.Write"<TR class=""hback""><TD colspan=""4"" class=""hback"" height=""40"">没有记录。</TD></TR>" else Rs.PageSize=int_RPP cPageNo=Request.QueryString("Page") If cPageNo="" Then cPageNo = 1 If not isnumeric(cPageNo) Then cPageNo = 1 cPageNo = Clng(cPageNo) If cPageNo>Rs.PageCount Then cPageNo=Rs.PageCount If cPageNo<=0 Then cPageNo=1 Rs.AbsolutePage=cPageNo for i=1 to int_RPP if Rs.eof Then exit For%> <form name="form<%=i%>" action="Admin_LM_Type.asp?Action=EditSave" method="post"> <tr> <td height=32 align="center" class="hback"><%= RS("ID") %></td> <td height=32 align="center" class="hback"><input name="LMType" type="text" id="LMType" value="<%= RS("LMType") %>" size="40"></td> <td height=32 align="center" class="hback"><select name="TypeID" id="TypeID"> <%Response.Write EditClassID(0,"",RS("TypeID"))%> </select><input name="ID" type="hidden" value="<%= RS("ID") %>"></td> <td align="center" class="hback"><A href="javascript:form<%=i%>.submit();">修改</A>|<A href="Admin_LM_Type.asp?ID=<%= RS("ID") %>&Action=Del">删除</A></td> </tr> </form> <%Rs.MoveNext next end if%> <tr align="right"> <td height=32 colspan="4" class="hback"><% response.Write fPageCount(Rs,cPageNo) %></td> </tr> </table> <%RS.Close Set RS = Nothing end sub sub Add()%> <table class=table cellspacing=1 cellpadding=3 width="98%" align=center border=0> <tr> <td colspan="4" class=xingmu>添加联盟栏目转换</td> </tr> <form name="form" action="Admin_LM_Type.asp?Action=AddSave" method="post"> <tr> <td width="15%" height=32 align="right" class="hback">联盟栏目:</td> <td width="35%" class="hback"><input name="LMType" type="text" id="LMType" size="40"></td> <td width="15%" align="right" class="hback">对应系统栏目:</td> <td width="35%" class="hback"><select name="TypeID" id="TypeID"> <%Response.Write EditClassID(0,"","")%> </select></td> </tr> <tr> <td height=32 colspan="4" align="center" class="hback"><input type="submit" name="Submit" value="添 加"></td> </tr> </form> </table> <%end sub call Connclose()%> </BODY> </HTML>